package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.FKnowBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.FKnowInfoIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class FKnowInfoModel extends RetrofitBaseModel implements FKnowInfoIface<FKnowBean> {
    private AllService allService;
    private Retrofit retrofit;
    public FKnowInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }


    @Override
    public void getFKnowInfo(String fknow_id, TListener<FKnowBean> tListener) {
        Call<FKnowBean> call = allService.getFKnowInfo(fknow_id);
        callenqueue(call,tListener);
    }
}
